package com.yj.dao.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.yj.dao.ClassesDao;
import com.yj.model.Classes;

@Repository("classesDao")
public class ClassesDaoImpl extends BaseDaoImpl<Classes> implements ClassesDao {

	@SuppressWarnings("unchecked")
	@Override
	public List<Classes> queryByAcademyId(Integer aid) {
		String hql = "from Classes where academy_id=:acedemy_id";
		return getSession().createQuery(hql).setParameter("acedemy_id", aid).list();
	}

}
